import { TResponse } from "@/api/index.type";
import { http } from "@/utils/request";
/**
 * @description 上传文件
 */
export const uploadFile = (type: number, data: any) => {
    return http.post<TResponse>(`/sys/file/uploadFile?type=${type}`, data, { headers: { 'Content-Type': 'multipart/form-data' } })
};